home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / _GUICtrlStatusBarSetText.au3 < prev    next >
Text File  |  2006-08-01  |  683b  |  29 lines

  1. opt("MustDeclareVars", 1)
  2.  
  3. #include <GUIConstants.au3>
  4. #Include <GuiStatusBar.au3>
  5.  
  6. Local $gui, $StatusBar1, $msg
  7. Local $a_PartsRightEdge[3] = [100, 350, -1]
  8. Local $a_PartsText[3] = ["New Text", "More Text", "Even More Text"]
  9.  
  10. $gui = GUICreate("Status Bar Set Text", 500, -1, -1, -1, $WS_SIZEBOX)
  11.  
  12. $StatusBar1 = _GUICtrlStatusBarCreate ($gui, $a_PartsRightEdge, $a_PartsText)
  13. _GUICtrlStatusBarSetText ($StatusBar1, "Text has been set", 1)
  14.  
  15. GUISetState(@SW_SHOW)
  16.  
  17.  
  18. While 1
  19.     $msg = GUIGetMsg()
  20.     Select
  21.         Case $msg = $GUI_EVENT_RESIZED
  22.             _GUICtrlStatusBarResize ($StatusBar1)
  23.         Case $msg = $GUI_EVENT_CLOSE
  24.             ExitLoop
  25.         Case Else
  26.             ;;;;;
  27.     EndSelect
  28.     
  29. WEnd